#ifndef PARAMMICROSCOPYVIEW_H
#define PARAMMICROSCOPYVIEW_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlQuery>
#include "CustomWgt/LineEditDelegate.h"
#include "Settings/Model/MySqlTableModel.h"
#include "CustomWgt/TableWgt.h"

namespace Ui {
   class ParamMicroscopy;
}


class ParamMicroscopyView : public QWidget
{
    Q_OBJECT

public:
    explicit ParamMicroscopyView(QWidget *parent = 0);
    ~ParamMicroscopyView();

private slots:
    void on_Btn_new_clicked();
    void on_Btn_del_clicked();

protected slots:
    void myClearFocus();

private:
    void saveSettings();
    void InitTable();

private:
    Ui::ParamMicroscopy *ui;
    LineEditDelegate *delegate;
    MySqlTableModel* pModel;
    TableWgt *pMicroscopyTbv;


    QStringList paramMicroDataBak;
    QStringList paramMicroDataBak_last;
    QStringList paramMicroDataBak_now;
    QStringList logtemp;

private:
    int  microscopy_compare_param_to_bak();
    void close_softKeyboard_handle();
    int micros_judge_name_if_repeat();
    bool modules_change_save();


};

#endif // PARAMMICROSCOPYVIEW_H
